package com.foruo.learn.designmode.strategy;

/**
 * 除法
 * @author GaoYuan
 * @date 2018/11/11 下午2:47
 */
public class DivOperation implements IOperation{

    @Override
    public int operation(int a, int b){
        if(b == 0){
            return 0;
        }
        return a / b;
    }
    
}
